<?phpnamespace Samecity\Controller;use Think\Controller;class TrainController extends Controller {    /**     * 发布培训报班     */    public function train(){        $post = $_POST;        $post['add_time'] = time();        $recruit = M('train');        $upload = new UploadController();        $data = $recruit->add($post);        if (!$data) {            $arr = array(                "code"=>0,                "msg"=>"发布失败",            );        }else{            $arr = array(                "code"=>1,                "msg"=>"发布成功"            );        }        $this->ajaxReturn($arr);    }    }